<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs2.jsp"%>

<c:if test="${currentPage != null}">
<c:set var="y" value="8" />
<TABLE border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">
 <TR>
	<TD width="2" height="100%" class="border_portlet_content_left"></TD> <!-- 左边框 -->
	<!-- portlet显示区域 -->
	<TD valign="top">
		<TABLE width="100%" height="*">
		<!--
		<TR>
			<TD colspan="3" class="border_portlet_content_top"></TD>
		</TR>
		 -->
		<TR>

			<TD>
				<!-- 生成portal列布局 -->
				<table width="100%" height="100%" border="0" cellSpacing="0" cellPadding="0">
				<TR>
					<td
						<c:if test="${currentPage.layoutType == 2 || currentPage.layoutType == 5}">width="*" <c:set var="y" value="23" /></c:if>
						<c:if test="${currentPage.layoutType == 1 || currentPage.layoutType == 3  || currentPage.layoutType == 4}">width="252"<c:set var="y" value="8" /></c:if>
						height="*" vAlign="top">
						<c:forEach items="${column1}" var="portletPage">
								<div id="portlet_id_${portletPage.id}" value="${portletPage.title} }">
									<!--zhenzhen_zhang 
										周补丁合并PT047850  解决首页数据库中修改各种应用在首页的默认显示数量和实际显示条数不相符的问题 用于在后台porlet获取count-->
									<jsp:include page="${portletPage.portlet.url}&count=${portletPage.portlet.counts}&y=${y}&showtitle=${portletPage.isShowTitle}&toPage=${portletPage.page.pageCode}" />
								</div>
								<table width="100%" style="height:8;"><tr><td></td></tr></table>
						</c:forEach>
					</td>
					<c:if test="${currentPage.layoutType < 5 }">
					<td width='8'>&nbsp;&nbsp;&nbsp;</td>
					<td
						<c:if test="${currentPage.layoutType == 1 || currentPage.layoutType == 4}">width="*" <c:set var="y" value="23" /></c:if>
						<c:if test="${currentPage.layoutType == 2 || currentPage.layoutType == 3}">width="252" <c:set var="y" value="8" /></c:if>
						height="*" vAlign="top">
						<c:forEach items="${column2}" var="portletPage">
								<div id="portlet_id_${portletPage.id}" value="${portletPage.title} }">
								<!--zhenzhen_zhang 
										周补丁合并PT047850  解决首页数据库中修改各种应用在首页的默认显示数量和实际显示条数不相符的问题 用于在后台porlet获取count-->
									<jsp:include page="${portletPage.portlet.url}&count=${portletPage.portlet.counts}&y=${y}&showtitle=${portletPage.isShowTitle}&toPage=${portletPage.page.pageCode}" />
								</div>
								<table width="100%" style="height:8;"><tr><td></td></tr></table>
						</c:forEach>
					</td>
					</c:if>
					<c:if test="${currentPage.layoutType == 1 || currentPage.layoutType == 3 }">
					<td width='8'>&nbsp;&nbsp;&nbsp;</td>
					<td
						<c:if test="${currentPage.layoutType == 1}">width="252"<c:set var="y" value="8" /></c:if>
						<c:if test="${currentPage.layoutType == 3}">width="*"<c:set var="y" value="23" /></c:if>
						height="*" vAlign="top">
						<c:forEach items="${column3}" var="portletPage">
								<div id="portlet_id_${portletPage.id}" value="${portletPage.title} }">
								<!--zhenzhen_zhang 
										周补丁合并PT047850  解决首页数据库中修改各种应用在首页的默认显示数量和实际显示条数不相符的问题 用于在后台porlet获取count-->
									<jsp:include page="${portletPage.portlet.url}&count=${portletPage.portlet.counts}&y=${y}&showtitle=${portletPage.isShowTitle}&toPage=${portletPage.page.pageCode}" />
								</div>
								<table width="100%" style="height:8;"><tr><td></td></tr></table>
						</c:forEach>
					</td>
					</c:if>
				</TR>
				</table>
			</TD>

		</TR>
		<TR>
			<TD colspan="3" class="border_portlet_content_bottom"></TD> <!-- 底部边框 -->
		</TR>

		</TABLE>

	</TD>

 </TR>
 </TABLE>

</c:if>